#include "logo.h"

char *emptyp(void)
{
     int i;
     int p =0;
     int j =0;
     int l;
     char *ans;
     char *value;
     char *wordn;
     char wordnStr[MAXVALUE] ="\0";
     char valueStr[MAXVALUE] ="\0";
     char ansStr[MAXVALUE] ="\0";

     ans =ansStr;
     value =valueStr;
     wordn =wordnStr;
     strcpy(value,getValue());
     strcpy(ans,"TRUE");
     sscanf(value,"%[A-Z,0-9,a-z]",wordn);
     l =0;
     while ((isdigit(value[l]))&&(l<strlen(wordn)))
     {
           l++;
     }
     if ((strlen(value) == strlen(wordn))&&(strlen(value) > l))
     {
        for (i=0;i<wordLen;i++)
        {
            if (!strcmp(value,wordName[i]))
            {
               strcpy(ans,"FALSE");
               goto RE;
            }
        }
     }else
     {
          i =0;
          while (i<strlen(value))
          {
                if (value[i] =='[')
                {
                   p++;
                }else if (value[i] ==']')
                {
                      p--;
                }else if (!isspace(value[i]))
                {
                      j++;
                }
                i++;
          }
          if ((!p)&&(j)&&(value[0] == '['))
          {
             strcpy(ans,"FALSE");
          }
     }
     RE:
         return ans;
}
